package com.xqboss.apps.dto.synthesis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 */
@Data
@ApiModel(value = "合成活动方案绑定查询出参", description = "接收参数")
public class WebSynthesisConsumeEditDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "方案名称")
    @NotEmpty(message = "方案名称不可为空")
    @Length(max = 50, message = "方案名称格式不合法")
    private String name;

    @ApiModelProperty(value = "消耗材料实体")
    private List<WebSynthesisPlanConsumeEditDto> maxConsumes;

    @ApiModelProperty(value = "产出实体")
    private List<SynthesisPlanResultDto> results;
}
